package gui;

/**
 * @author Ramy Refky 
 * */
public class TFFComponentGraphics extends ComponentGraphics{

	private static final long serialVersionUID = 1L;
	
	/**
	 * Constructor initializes T-FLIP-FLOP Gate by initializing ComponentGraphics, and then painting the TFFComponentLabel.
	 * @param MainGui, XLocation, YLocation, Width, Height, NumberOfInputs, NumberOfOutputs
	 * */
	public TFFComponentGraphics(MainGui mg,int originalXLoc,int originalYLoc,
			int originalWidth,int originalHeight,int numOfInputs,int numOfOutputs){
		super(mg,originalXLoc,originalYLoc,originalWidth,originalHeight,numOfInputs,numOfOutputs);
		
		this.remove(compLabel);
		compLabel=new TFFComponentLabel(newXLoc,newYLoc,originalWidth,originalHeight);
		this.add(compLabel);
		setComponentZOrder(compLabel,0);
		repaint();
	}
}